/*
 * @Author: zhayang
 * @LastEditors: zhayang 1063975710@qq.com
 * @Date: 2024-06-27 22:52:50
 * @LastEditTime: 2024-07-02 22:43:58
 * @Description: 视频管理相关
 */
import request from '@/utils/request'
// 视频列表
export function getVideoList(params) {
  return request({
    url: '/users-api/video',
    method: 'get',
    params
  })
}
// 合集列表
export function getCollectList(params) {
  return request({
    url: '/users-api/video/series',
    method: 'get',
    params
  })
}
// 创建视频
export function addVideo(data) {
  return request({
    url: '/users-api/video',
    method: 'post',
    data
  })
}
// 编辑视频
export function editVideo(data) {
  return request({
    url: '/users-api/video/edit',
    method: 'post',
    data
  })
}
// 删除视频
export function deleteSingleVideo(data) {
  return request({
    url: '/users-api/video',
    method: 'delete',
    data
  })
}
// 关联视频到合集下
export function linkSeries(data) {
  return request({
    url: '/users-api/video/series/link',
    method: 'post',
    data
  })
}
// 创建合集
export function addSeries(data) {
  return request({
    url: '/users-api/video/series',
    method: 'post',
    data
  })
}
// 编辑合集
export function editSeries(data) {
  return request({
    url: '/users-api/video/series/edit',
    method: 'post',
    data
  })
}
// 删除合集
export function deleteSingleSeries(data) {
  return request({
    url: '/users-api/video/series',
    method: 'delete',
    data
  })
}
// 解除视频与合集关联
export function unlinkSeries(data) {
  return request({
    url: '/users-api/video/series/unlink',
    method: 'post',
    data
  })
}
// 获取合集详情
export function getSeriesDetails(params) {
  return request({
    url: '/users-api/video/series/find',
    method: 'get',
    params
  })
}
